Skip to content

Conversation

@cioddi
Copy link
Member

@cioddi cioddi commented Jan 18, 2026

No description provided.

@cioddi cioddi requested a review from Copilot January 18, 2026 13:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes layer switching functionality in the MlWmsLoader component and refactors the sortable container implementation.

Changes:

  • Modified SortableContainer to use dynamic UUIDs instead of layer IDs for drag-and-drop functionality
  • Enhanced MlWmsLoader with new props for controlling layer visibility, feature info callbacks, and UI display
  • Updated MlWmsLayer to simplify layer initialization and improve source change detection
  • Upgraded maplibre-gl dependency and updated test assertions to use newer API methods

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
SortableContainer.tsx Removed layerId prop and switched to UUID-based IDs for sortable items
LayerListItem.tsx Updated to pass children without layerId prop to SortableContainer
MlWmsLoader.tsx Added visibility control, feature info callbacks, and conditional layer list rendering
MlWmsLayer.tsx Simplified layer initialization logic and improved source update detection
MlTerrainLayer.cy.tsx Updated test assertions from sourceCaches to getSource API
package.json Upgraded maplibre-gl from 5.7.0 to 5.16.0
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cioddi cioddi merged commit bd163c3 into main Jan 18, 2026
5 checks passed
@cioddi cioddi deleted the fix/mlwmsloader-layer-switch-2 branch January 18, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants